# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bootloose
pkgver=0.7.1
pkgrel=3
pkgdesc="Manage containers that look like virtual machines"
url="https://github.com/k0sproject/bootloose"
arch="all"
license="Apache-2.0"
makedepends="go"
source="https://github.com/k0sproject/bootloose/archive/refs/tags/v$pkgver/bootloose-$pkgver.tar.gz"
options="chmod-clean"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	make
}

check() {
	make test-unit
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
515d6eff47705c84c10421a32fe18a2fcefdf5214824a08f3651a632b0e0ba53c4e83f485ac81eba483c795d285bbda31c8f134c4128e4df609e6528c3f8819d  bootloose-0.7.1.tar.gz
"
